package com.ruoyi.stock.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 会员规则对象 stock_member_rule
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
@ApiModel()
public class StockMemberRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 会员等级 */
    @Excel(name = "会员等级")
    @ApiModelProperty(value = "会员等级")
    private String memberLevel;

    /** 卡名称 */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    /** 有限天数 */
    @Excel(name = "有限天数")
    @ApiModelProperty(value = "有限天数")
    private Long validDays;

    /** 会员类型（1：缴费会员，2；免费会员） */
    @Excel(name = "会员类型", readConverterExp = "1=：缴费会员，2；免费会员")
    private Long memberType;

    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value = "价格")
    private BigDecimal price;


    @Excel(name = "询价剩余次数")
    private String inqueryCount;


    public Long getMemberType() {
        return memberType;
    }

    public void setMemberType(Long memberType) {
        this.memberType = memberType;
    }

    public String getInqueryCount() {
        return inqueryCount;
    }

    public void setInqueryCount(String inqueryCount) {
        this.inqueryCount = inqueryCount;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMemberLevel(String memberLevel)
    {
        this.memberLevel = memberLevel;
    }

    public String getMemberLevel()
    {
        return memberLevel;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setValidDays(Long validDays) 
    {
        this.validDays = validDays;
    }

    public Long getValidDays() 
    {
        return validDays;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberLevel", getMemberLevel())
            .append("name", getName())
            .append("validDays", getValidDays())
            .append("price", getPrice())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
